package aaa.schedule.parameters;

import java.util.ArrayList;

import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class ListCreateScheduleAdapter extends BaseAdapter {

	protected ArrayList<ParameterType> params ;
	
	public ListCreateScheduleAdapter(ArrayList<ParameterType> params) {
		this.params = params ;
	}

	public int getCount() {
		return params.size();
	}


	// Permet de retourner un objet contenu dans la liste	
	public ParameterType getItem(int index) {
		return this.params.get(index);
	}

	public long getItemId(int index) {
		return index;
	}

	public View getView(int position, View convertView, ViewGroup parent){
		View row = this.getItem(position).getView(convertView, parent) ;
		return row ;
	}

}
